package com.big.app.controller;

import com.big.app.service.intf.MoviedetailService;
import com.big.app.vo1.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/moviedetail/")
@CrossOrigin
@Api(value = "实现电影详情相关操作",tags = "实现电影详情相关操作")
public class MoviedetailController {
    @Resource
    private MoviedetailService service;

    @GetMapping("query.do")
    public R detail(int id){
        return service.queryDetail(id);
    }
}

